package org.ccay.core.base;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * 分页结果对象
 * 
 * @since 2011-8-26
 */
@XmlRootElement
public class PagedResult<T> implements Serializable {
	
	private static final long serialVersionUID = 3511759640725963728L;
	private PageVO pageVO;
	
	private List<T> result;
	
	public PagedResult() {
	}
	
	/**
	 * 创建PagedResult
	 * @param pageVO 分页VO，必须具有totalRows参数
	 * @param result 结果
	 */	
	public PagedResult(PageVO pageVO, List<T> result) {
		this.pageVO = pageVO;
		this.result = result;		
	}
	/**
	 * @return pageVO
	 */
	public PageVO getPageVO() {
		return pageVO;
	}
	/**
	 * @return result
	 */
	public List<T> getResult() {
		return result;
	}

	/**
	 * @param pageVO
	 */
	public void setPageVO(PageVO pageVO) {
		this.pageVO = pageVO;
	}

	/**
	 * @param result
	 */
	public void setResult(List<T> result) {
		this.result = result;
	}
	 
}
